var newwin = null;
function winopen(htmlurl) {
if(navigator.appName.indexOf("Netscape") != -1)
  {
    newwin=window.open(htmlurl,"homeWin","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=500,height=400,left=100,top=10");
    newwin.focus();
    return false;
  }
else
  { 
  if(self.newwin != null)
	{
	  self.newwin.close();
	  newwin = null;
          newwin=window.open(htmlurl,"homeWin","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=500,height=400,left=100,top=10");
	}
  newwin=window.open(htmlurl,"homeWin","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=500,height=400,left=100,top=10");
  return false;
  }
}

function win(htmlurl) {
if(navigator.appName.indexOf("Netscape") != -1)
  {
    newwin=window.open(htmlurl,"surveywin","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=400,height=410,left=100,top=10");
    newwin.focus();
    return false;
  }
else
  { 
  if(self.newwin != null)
	{
	  self.newwin.close();
	  newwin = null;
          newwin=window.open(htmlurl,"surveywin","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=400,height=410,left=100,top=10");
	}
  newwin=window.open(htmlurl,"surveywin","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=400,height=410,left=100,top=10");
  return false;
  }
}

function open_window(theURL)
{
    window.open(theURL,"","scrollbars=yes,menubar=yes,resizable=yes,width=600");
    return;
}

function shutwin()
{
	window.close();
        return;
}

function printit()
{
	display1.style.display="none";
	display2.style.display="none";
	window.print();
}

function defaul_home()
{
	this.home.style.behavior='url(#default#homepage)';
	this.home.setHomePage('http://www.yt165.com/');
}

